<?php
	class ConfigController extends Controller
	{
		public $page_title = LANG_CONFIG_FILE;
		public $layout = 'main';
		public $helpers = array ('html');
		
		function index()
		{
			$config_file = ROOT.SEPARATOR.'app'.SEPARATOR.'config.ini';
			if ($this->controller_model->FileExists($config_file))
			{
				$configFile = new ConfigFile();
				$this->data[contents] = $configFile->ReadConfigFile($config_file);
			}
			else 
			{
				throwError(ERROR,LANG_CONFIG_FILE_NOT_EXISTS);
			}
		}
	}
?>